package com.fishery.order.handler;

import com.fishery.entity.Result;
import com.fishery.order.entity.Order;
import com.fishery.order.entity.client.OrderVo;
import com.fishery.order.entity.client.RefrigeratoryPrepareEnter;
import com.fishery.order.service.client.RefrigeratoryClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author run
 * @since 2021/3/11 21:42
 */
@Component
public class RefrigeratoryClientFallback implements RefrigeratoryClient {
	@Override
	public Result saveRefrigeratoryOutInfo(Order order) {
		return Result.error("服务繁忙");
	}

	@Override
	public Result deleteRefrigeratoryOutInfoById(String id) {
		return Result.error("服务繁忙");
	}

	@Override
	public Result updateOrder(com.fishery.order.entity.vo.OrderVo orderVo) {
		return Result.error("服务繁忙");
	}

	@Override
	public Result getProduct(String id) {
		return Result.error("服务繁忙");
	}

	@Override
	public Result selectProductInfo(String productId) {
		return Result.error("服务繁忙");
	}

	@Override
	public Result saveRefrigeratoryEnter(RefrigeratoryPrepareEnter refrigeratoryEnter) {
		return Result.error("服务繁忙");
	}


}
